package su2010.puz;

import java.awt.Dimension;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

import javax.swing.JButton;
import javax.swing.JFrame;

public class CloseButton extends JFrame {
	/**
	 * 
	 */
	private static final long serialVersionUID = -4167742899741399289L;

	public CloseButton() {
		JButton close = new JButton("close");
		close.addActionListener(new ActionListener() {
			
			@Override
			public void actionPerformed(ActionEvent arg0) {
				System.exit(1);
				
			}
		});
		setTitle("close");
		setLocation(1000, 0);
		setPreferredSize(new Dimension(200,75));
		setDefaultCloseOperation(EXIT_ON_CLOSE);
		add(close);
		pack();
		setVisible(true);
	}
}
